package com.woniu.mapper;

import com.woniu.entity.TimeSlot;
import com.woniu.vo.TimeSlotVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author hzw
* @description 针对表【time_slot(医生出诊时间段表)】的数据库操作Mapper
* @createDate 2025-10-29 14:31:04
* @Entity com.woniu.entity.TimeSlot
*/
public interface TimeSlotMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(TimeSlot record);

    Integer insertSelective(TimeSlot record);

    TimeSlot selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(TimeSlot record);

    Integer updateByPrimaryKey(TimeSlot record);
    List<TimeSlot> findByDoctorId(Integer doctorId);

    List<TimeSlotVO> findAll();

    List<TimeSlot> findByDoctorTime(@Param("doctorId") Integer doctorId,
                                    @Param("startTime") Date startTime,
                                    @Param("endTime") Date endTime);

}
